package com.bawei.module_inspection.http

import com.bawei.lib_common.base.BaseResponse
import com.bawei.module_inspection.model.PatrolModel
import com.bawei.module_inspection.model.PatrolModelItem
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface InspectionApi {

    @GET("/api/patrol-points")
    suspend fun getPatrol() : BaseResponse<PatrolModel>

    @POST("/api/patrol-points")
    suspend fun postPatrol(@Body body: PatrolModelItem) : BaseResponse<PatrolModelItem>

    @GET("/api/patrol-points/{id}")
    suspend fun getInspectionDetail(@Path("id") id: Int) : BaseResponse<PatrolModelItem>

}